class CreateAnnotations < ActiveRecord::Migration
  def self.up
    create_table :annotations do |t|
      t.integer :document_id
      t.integer :user_id
      t.text :comment
      t.text :tokens_array
      t.text :points_array #declared as text so that it is easier to serialize (array)

      t.timestamps
    end
  end

  def self.down
    drop_table :annotations
  end
end
